package com.spring.entities;

/**
 * 单例
 * @author lx
 *
 */
public class GlobalBean {
	private static GlobalBean instance = null;

	private GlobalBean() {
	}

	public static GlobalBean getInstance() {
		if (instance == null)
			instance = new GlobalBean();
		return instance;
	}

	public void showMe() {
		System.out.println("I am a singleTon bean");
	}
}